Optimal. Leaf size=231 \[ \frac {9 i a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{32 \sqrt {2} d}+\frac {3 i a^3 \cos (c+d x)}{16 d \sqrt {a+i a \tan (c+d x)}}-\frac {3 i a^2 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{20 d}-\frac {9 i a^2 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{32 d}-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}-\frac {9 i a \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{70 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.34, antiderivative size = 231, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {3497, 3502, 3490, 3489, 206} \[ -\frac {3 i a^2 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{20 d}-\frac {9 i a^2 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{32 d}+\frac {3 i a^3 \cos (c+d x)}{16 d \sqrt {a+i a \tan (c+d x)}}+\frac {9 i a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{32 \sqrt {2} d}-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}-\frac {9 i a \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{70 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 3489
Rule 3490
Rule 3497
Rule 3502
Rubi steps
\begin {align*} \int \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx &=-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{14} (9 a) \int \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2} \, dx\\ &=-\frac {9 i a \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{70 d}-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{20} \left (9 a^2\right ) \int \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx\\ &=-\frac {3 i a^2 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{20 d}-\frac {9 i a \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{70 d}-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{8} \left (3 a^3\right ) \int \frac {\cos (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx\\ &=\frac {3 i a^3 \cos (c+d x)}{16 d \sqrt {a+i a \tan (c+d x)}}-\frac {3 i a^2 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{20 d}-\frac {9 i a \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{70 d}-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{32} \left (9 a^2\right ) \int \cos (c+d x) \sqrt {a+i a \tan (c+d x)} \, dx\\ &=\frac {3 i a^3 \cos (c+d x)}{16 d \sqrt {a+i a \tan (c+d x)}}-\frac {9 i a^2 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{32 d}-\frac {3 i a^2 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{20 d}-\frac {9 i a \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{70 d}-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{64} \left (9 a^3\right ) \int \frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx\\ &=\frac {3 i a^3 \cos (c+d x)}{16 d \sqrt {a+i a \tan (c+d x)}}-\frac {9 i a^2 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{32 d}-\frac {3 i a^2 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{20 d}-\frac {9 i a \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{70 d}-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {\left (9 i a^3\right ) \operatorname {Subst}\left (\int \frac {1}{2-a x^2} \, dx,x,\frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}}\right )}{32 d}\\ &=\frac {9 i a^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{32 \sqrt {2} d}+\frac {3 i a^3 \cos (c+d x)}{16 d \sqrt {a+i a \tan (c+d x)}}-\frac {9 i a^2 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{32 d}-\frac {3 i a^2 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{20 d}-\frac {9 i a \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{70 d}-\frac {i \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.25, size = 155, normalized size = 0.67 \[ -\frac {i a^2 e^{-3 i (c+d x)} \left (353 e^{2 i (c+d x)}+544 e^{4 i (c+d x)}+214 e^{6 i (c+d x)}+68 e^{8 i (c+d x)}+10 e^{10 i (c+d x)}-315 e^{2 i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\sqrt {1+e^{2 i (c+d x)}}\right )-35\right ) \sqrt {a+i a \tan (c+d x)}}{2240 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 2.23, size = 300, normalized size = 1.30 \[ -\frac {{\left (315 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{5}}{d^{2}}} d e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (-\frac {9 \, {\left (-i \, a^{3} + \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{16 \, d}\right ) - 315 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{5}}{d^{2}}} d e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (-\frac {9 \, {\left (-i \, a^{3} - \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{5}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{16 \, d}\right ) - \sqrt {2} {\left (-10 i \, a^{2} e^{\left (10 i \, d x + 10 i \, c\right )} - 68 i \, a^{2} e^{\left (8 i \, d x + 8 i \, c\right )} - 214 i \, a^{2} e^{\left (6 i \, d x + 6 i \, c\right )} - 544 i \, a^{2} e^{\left (4 i \, d x + 4 i \, c\right )} - 353 i \, a^{2} e^{\left (2 i \, d x + 2 i \, c\right )} + 35 i \, a^{2}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{2240 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \cos \left (d x + c\right )^{7}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.85, size = 1260, normalized size = 5.45 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int {\cos \left (c+d\,x\right )}^7\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________